package cn.demoncat.util.ocr.huawei.constant;

/**
 * 华为云OCR接口
 *
 * @author 延晓磊
 * @since 2020年10月23日
 */
public enum HwOcrApi {

    ID_CARD("/v1.0/ocr/id-card", "身份证识别"),
    BANK_CARD("/v1.0/ocr/bankcard", "银行卡识别"),
    BUSINESS_LICENSE("/v1.0/ocr/business-license", "营业执照识别");

    private final String url;
    private final String name;

    HwOcrApi(String url, String name) {
        this.url = url;
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public String getName() {
        return name;
    }
}
